package com.yykj.hospital.server.service.impl;

import com.yykj.hospital.server.model.entity.HospitalAdminLog;
import com.yykj.hospital.server.model.repository.HospitalAdminLogRepository;
import com.yykj.hospital.server.service.HospitalAdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HospitalAdminLogServiceImpl implements HospitalAdminLogService {
    @Override
    public void addLog(HospitalAdminLog log) {
        hospitalAdminLogRepository.save(log);
    }

    private HospitalAdminLogRepository hospitalAdminLogRepository;

    @Autowired
    public void setHospitalAdminLogRepository(HospitalAdminLogRepository hospitalAdminLogRepository) {
        this.hospitalAdminLogRepository = hospitalAdminLogRepository;
    }
}
